package com.ruoyi.framework.web.service;

import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.system.service.ISysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author LongJunJiang
 * @create 2022-08-22-9:02
 */
@Service("roles")
public class RoleService {
    @Autowired
    ISysRoleService roleService;

    public List<SysRole> getAllRoles(){
        return roleService.selectAllRoles();
    }
}
